<include file="Public/header" />
<title>计划入库单</title>
</head>
<style>
	td{width:50px;height:18px;overflow:hidden;word-spacing:nowrap;padding:0 3px;margin:0;border-top:1px solid #000 !important;border-left:1px solid #000 !important;line-height:14px;}
	table{
		table-layout:fixed;
		border:0 !important;
	}
	tr{
		border:0 !important;
	}
	
	.border0{
		border-top:0 !important;
		border-right:0 !important;
		border-left:0 !important;
	}
	.border1{
		border-right:1px solid #000 !important
	}
	.border2{
		border-bottom:1px solid #000 !important
	}
	.border-top{
		border-top:0 !important;
	}
	.border-right{
		border-right:0 !important;
	}
	.border-bottom{
		border-bottom:0 !important;
	}
	.border-left{
		border-left:0 !important;
	}
	.bold{
		font-weight:bold;
	}
	.table-border td {
		border-bottom: 0px solid #ddd;
	}
	@media print {
		.noprint { display: none; }
		#emstable {page-break-after:always;}
	}
</style>

<body>
<div class="pd-20">
	<table class=" table-border table-bordered table-hover " style="border-top:0;">
		<thead  class="border0">
			<tr  class="border0">
				<td scope="col" colspan="12"  class="border0" style='text-align:center;font-size:16px;font-weight:bold;border:0'><{:C('base_config.company_name')}>计划入库单</td>
			</tr>
			<tr class="">
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0"></td>
				<td class="border0">打印日期:</td>
				<td class="border0" colspan="2"><{:date('Y-m-d',time())}></td>
				<td class="border0"></td>
				<td class="border0">打印页数:</td>
				<td class="border0"></td>
				<td class="border0">1/1</td>
				<td class="border0"></td>
			</tr>
		</thead>
		<tbody>
			<tr class="">
				<td>单据编号:</td>
				<td colspan="3"><{$detail.order_no}></td>
				<td>单据日期:</td>
				<td colspan="3"><{$detail.created_at}></td>
				<td>制单人:</td>
				<td colspan="3"  class="border1"><{$detail.making}></td>
			</tr>
			<tr class="">
				<td>往来单位:</td>
				<td colspan="3"><{$detail.from_company}></td>
				<td>部门:</td>
				<td colspan="3"><{$detail.department}></td>
				<td class="cgsqr">申请人:</td>
				<td colspan="3"  class="border1"><{$detail.purchaser}></td>
			</tr>
			<tr class="text-c">
				<td>入库仓库</td>
				<td colspan="2">商品编码</td>
				<td>商品名称</td>
				<td>批次号</td>
				<td>主单位</td>
				<td>数量</td>
				<td>含税单价</td>
				<td>采购金额</td>
				<td>辅单位</td>
				<td>辅数量</td>
				<td  class="border1">备注</td>
			</tr>
			<volist name="list" id="vo">
			<tr class="">
				<td><{$vo.warehouse_info.name}></td>
				<td colspan="2"><{$vo.product.goods_no}></td>
				<td><{$vo.product.name}></td>
				<td><{$vo.batch_no}></td>
				<td><{$vo.unit_name}></td>
				<td><{$vo.count}></td>
				<td><{$vo.price}></td>
				<td><{$vo['price']*$vo['count']}></td>
				<td><{$vo.unit_t_name}></td>
				<td><{$vo.unit_t_count}></td>
				<td  class="border1"><{$vo.bz}></td>
			</tr>
			</volist>
			<tr class="">
				<td colspan="3" class="text-c">合计</td>
				<td></td>
				<td></td>
				<td></td>
				<td><{$count_count}></td>
				<td></td>
				<td><{$count_price}></td>
				<td></td>
				<td><{$count_second_count}></td>
				<td  class="border1"></td>
			</tr>
			<tr class="">
				<td colspan="2" class="text-c bold">申请理由摘要:</td>
				<td colspan="10" class="border1"></td>
			</tr>
			<tr class="">
				<td colspan="2" class="border2 bold">经办人:</td>
				<td colspan="2" class="border2 bold">复核人:</td>
				<td colspan="3" class="border2 bold">业务员:</td>
				<td colspan="2" class="border2 bold">有权审批人:</td>
				<td colspan="3" class="border1 border2"></td>
			</tr>
		</tbody>
	</table>
	<button onclick="window.print()"  class="btn btn-primary radius noprint">打印</button>
<div class="pages">
<{$page}>
</div>
</div>

</body>
</html>